﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TextEditor4
{
    public partial class ExceptionForm : Form
    {
        public ExceptionForm(String txt)
        {
            InitializeComponent();
            this.label1.Text = txt;
            this.errorProvider1.SetError(label1, txt);

        }

        public ExceptionForm(string txt, string label)
        {
            InitializeComponent();
            this.label1.Text = txt;
            this.Text = label;
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void ExceptionForm_Load(object sender, EventArgs e)
        {

        }
    }
}
